#ifndef __TYPE_DEFS_H_
	#define __TYPE_DEFS_H_
	#include "p18f46k22.h"
	
	#define GPSFrameLength 77
	#define FrameLengthMax 82
	
	typedef signed char         INT8;
	typedef signed short int    INT16;
	typedef unsigned int        UINT;
	typedef unsigned char       UINT8;
	typedef unsigned short int  UINT16;
	typedef unsigned long int   UINT32;
	
	typedef enum{
		FALSE=0,
		TRUE
	} bool_e;
	
	//Structure du buffer pour le PIC1
	typedef struct {
		UINT8 type;
		UINT8 date;
		UINT16 date2;
		UINT8 data[6];
		UINT8 * dataPlus;
	}BuildingFrame;
	
	//Structure du buffer pour le PIC2
	typedef struct{
		UINT8 data[11];
		UINT8 * dataGPS;
		UINT8 index;
	}FrameReceived;	
	
	typedef struct{
		UINT8 data[FrameLengthMax];
		UINT8 index;
	}FrameUART;	
	
#endif __TYPE_DEFS_H_